--[[

GDATABASE LIB by Tomato3017
Released as a Creative Commons License

USAGE:
	Allows the developer to make connections and query a database without the need to worry about maintaining the connection or if the connection exists.


]]


GDATABASE_VERSION = 1.21
GDATABASE_INSTALLED = true
gdatabase = {}

Msg("/////////GDATABASE VERSION " .. GDATABASE_VERSION .. " By Tomato3017////////\n")
include("gdatabase/config.lua")
Msg("///config.lua loaded!                            ///\n")
include("gdatabase/core.lua")
Msg("///core.lua loaded!                              ///\n")
include("gdatabase/lib.lua")
Msg("///lib.lua loaded!                               ///\n")
include("gdatabase/threaded.lua")
Msg("///threaded.lua loaded!                          ///\n")
include("gdatabase/commands.lua")
Msg("///commands.lua loaded!                          ///\n")
Msg("///////////////LOADING FINISHED/////////////////////\n")

AddCSLuaFile("autorun/client/cl_init.lua")
local files = file.FindInLua( "GDatabase/modules/*.lua" )
	if #files > 0 then
		for _, file in ipairs( files ) do
			if !string.find(file, "cl_") then 
				Msg( "GDATABASE:Loading module: " .. file .. "\n" )
				include( "GDatabase/modules/" .. file )
			else
				AddCSLuaFile( "GDatabase/modules/" .. file )
			end
		end
	end
	
